import request from '@/utils/requestMd5'

export function inventorySheet_index(params) {
  return request({
    url: '/inventorySheet/index',
    method: 'get',
    params
  })
}

export function inventorySheet_add(data) {
  return request({
    url: '/inventorySheet/add',
    method: 'post',
    data:data
  })
}

export function inventorySheet_info(params) {
  return request({
    url: '/inventorySheet/info',
    method: 'get',
    params
  })
}

export function inventorySheet_checkGoods(params) {
  return request({
    url: '/inventorySheet/checkGoods',
    method: 'get',
    params
  })
}

export function inventorySheet_check(data) {
  return request({
    url: '/inventorySheet/check',
    method: 'post',
    data:data
  })
}

export function inventorySheet_deleteList(data) {
  return request({
    url: '/inventorySheet/deleteList',
    method: 'post',
    data:data
  })
}

export function inventorySheet_copyList(params) {
  return request({
    url: '/inventorySheet/copyList',
    method: 'get',
    params
  })
}

export function inventorySheet_allGoodsSpuInventory(params) {
  return request({
    url: '/inventorySheet/allGoodsSpuInventory',
    method: 'get',
    params
  })
}

export function inventorySheet_getInventorySheetList(params) {
  return request({
    url: '/inventorySheet/getInventorySheetList',
    method: 'get',
    params
  })
}

export function inventorySheet_getGoodsSpu(params) {
  return request({
    url: '/inventorySheet/getGoodsSpu',
    method: 'get',
    params
  })
}


// 导出库存盘点详情单
export function export_check_info(data) {
  return request({
    url:'/export/inventorySheet',
    method:"post",
    responseType:"blob",
    data:data
  })
}